/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:岁亮亮
 * Date:2024-01-14
 * TIME:14:09
 */
public class student1 extends Student{
    public student1(String name, int age) {
        super(name, age);
    }

    public void method(){
        super.goschool() ;
        super.name="sui";
        good();
        goschool() ;
    }
    public void good(){
        System.out.println(name+"我是好学生");
    }
    public void goschool(){
        System.out.println("hehe");
    }

    @Override
    public String toString() {
        return "student1{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
